<template>
  <setting-item-box
    name="尺寸"
  >
    <el-input
      v-model="chartAttr.w"
      :min="50"
      size="small"
      placeholder="px"
    >
      <template #prefix>
        宽度
      </template>
    </el-input>
    <el-input
      v-model="chartAttr.h"
      :min="50"
      size="small"
      placeholder="px"
    >
      <template #prefix>
        高度
      </template>
    </el-input>
  </setting-item-box>
</template>

<script>
import SettingItemBox from '@/components/SettingItemBox'
export default {
  components: { SettingItemBox },
  props: {
    chartAttr: {
      type: Object,
      require:true,
      default: () => { }
    },
  }
}
</script>

<style lang="scss">
.el-input__prefix{
  padding-top: 6px;
}
</style>